package com.mydemo.ssm.service.impl;


import com.mydemo.ssm.dao.IUserDao;
import com.mydemo.ssm.model.UserModel;
import com.mydemo.ssm.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.ArrayList;
import java.util.List;

@Service("userService")
@Transactional
public class UserServiceImpl implements IUserService {


    @Autowired
    private IUserDao userDao;


    @Override
    public List<UserModel> getUserList() throws Exception {
        return userDao.findAll();
    }
}
